package edu.taru.hr.view;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class Test3 {
	public static void main(String[] args) throws Exception {
		File file = new File("C://test.txt");
		BufferedReader br = null;
		StringBuilder sb = new StringBuilder();
		String remLine = "123";
		br = new BufferedReader(new FileReader(file));
		String temp ;
		while ((temp=br.readLine() )!= null) {
			if (temp.trim().equals(remLine)) {
				continue;
			}
			sb.append(temp + "\r\n");
		}
		br.close();
		BufferedWriter bw = new BufferedWriter(new FileWriter(file));
		bw.write(sb.toString());
		bw.close();
	}
}
